//
//  YXKindDisplayView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXKindDisplayView.h"

@implementation YXKindDisplayView
@synthesize numberLab,tabView;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        numberLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 15)];
        numberLab.textColor = [UIColor blackColor];
        numberLab.font = [UIFont systemFontOfSize:15];
        numberLab.text = @"网店总数：0";
        numberLab.textAlignment = NSTextAlignmentCenter;
        [self addSubview:numberLab];
        
        tabView = [[UITableView alloc] initWithFrame:CGRectMake(0, numberLab.frame.origin.y + numberLab.frame.size.height, 320, [UIScreen mainScreen].bounds.size.height - STARTY - 15) style:UITableViewStylePlain];
        [self addSubview:tabView];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
